<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>美观的选项卡页面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        .container {
            max-width: 1200px;
            width: 90%;
            margin: 50px auto;
            padding: 30px;
            background-color: #f8f9fa;
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

        @media (min-width: 1200px) {
            .container {
                width: 60%;
            }
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
        }

        .tab {
            flex: 1;
            padding: 15px 20px;
            background-color: #e9ecef;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            color: #495057;
            transition: all 0.3s ease;
        }

        .tab.active {
            background-color: #0d6efd;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .tab:hover {
            background-color: #ced4da;
        }

        .tab-content {
            display: none;
            padding: 25px;
            background-color: white;
            border-radius: 10px;
            animation: fadeIn 0.5s ease;
        }

        .tab-content.active {
            display: block;
        }

        h2 {
            color: #212529;
            margin-bottom: 15px;
        }

        p {
            color: #6c757d;
            line-height: 1.6;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 表格容器 */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 学生信息表 */
.student-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.student-table th,
.student-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.student-table th {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.student-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.student-table tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s;
}

.student-table td {
    color: #495057;
}

/* 手机号特殊样式 */
.student-table td:nth-child(5) {
    font-family: monospace;
    color: #0d6efd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .student-table th,
    .student-table td {
        padding: 12px 14px;
        font-size: 14px;
    }
}
    </style>
</head>
<body>
    <div class="container">
        <div class="tabs">
            <button class="tab active" onclick="switchTab(event, 'tab1')">选项卡1</button>
            <button class="tab" onclick="switchTab(event, 'tab2')">选项卡2</button>
            <button class="tab" onclick="switchTab(event, 'tab3')">选项卡3</button>
            <button class="tab" onclick="switchTab(event, 'tab4')">选项卡4</button>
            <button class="tab" onclick="switchTab(event, 'tab5')">选项卡5</button>
        </div>

        <div id="tab1" class="tab-content active">
            <h2>欢迎来到选项卡1</h2>
            <p>这里是第一个选项卡的内容区域。您可以在此处放置任何类型的内容，包括文本、图片或其他多媒体元素。</p>
        </div>

        <div id="tab2" class="tab-content">
            <h2>选项卡2的内容</h2>
            <p>这是第二个选项卡的专属内容区域。尝试点击其他选项卡查看平滑的切换效果！</p>
        </div>

        <div id="tab3" class="tab-content">
            <h2>学生信息表</h2>
            <div class="table-container">
                <table class="student-table">
                    <thead>
                        <tr>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>班级</th>
                            <th>学号</th>
                            <th>手机号</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>张晓雯</td>
                            <td>女</td>
                            <td>高三（1）班</td>
                            <td>202301001</td>
                            <td>138-1234-5678</td>
                        </tr>
                        <tr>
                            <td>王浩然</td>
                            <td>男</td>
                            <td>高三（2）班</td>
                            <td>202302005</td>
                            <td>139-2345-6789</td>
                        </tr>
                        <tr>
                            <td>李思雨</td>
                            <td>女</td>
                            <td>高三（3）班</td>
                            <td>202303012</td>
                            <td>136-3456-7890</td>
                        </tr>
                        <tr>
                            <td>陈宇航</td>
                            <td>男</td>
                            <td>高三（1）班</td>
                            <td>202301008</td>
                            <td>135-4567-8901</td>
                        </tr>
                        <tr>
                            <td>刘雨欣</td>
                            <td>女</td>
                            <td>高三（2）班</td>
                            <td>202302003</td>
                            <td>137-5678-9012</td>
                        </tr>
                        <tr>
                            <td>黄子轩</td>
                            <td>男</td>
                            <td>高三（3）班</td>
                            <td>202303007</td>
                            <td>134-6789-0123</td>
                        </tr>
                        <tr>
                            <td>周若雪</td>
                            <td>女</td>
                            <td>高三（1）班</td>
                            <td>202301015</td>
                            <td>133-7890-1234</td>
                        </tr>
                        <tr>
                            <td>徐天宇</td>
                            <td>男</td>
                            <td>高三（2）班</td>
                            <td>202302009</td>
                            <td>132-8901-2345</td>
                        </tr>
                        <tr>
                            <td>吴雅婷</td>
                            <td>女</td>
                            <td>高三（3）班</td>
                            <td>202303004</td>
                            <td>131-9012-3456</td>
                        </tr>
                        <tr>
                            <td>郑泽阳</td>
                            <td>男</td>
                            <td>高三（1）班</td>
                            <td>202301020</td>
                            <td>130-0123-4567</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <div id="tab4" class="tab-content">
            <h2>最后选项卡</h2>
            <p>这是第四个选项卡的内容区域。所有内容都包含在美观的卡片式容器中。</p>
        </div>
        <div id="tab5" class="tab-content">
            <h2>文件说明选项卡</h2>
            <p>这是第四个选项卡的内容区域。所有内容都包含在美观的卡片式容器中。</p>
        </div>
    </div>

    <script>
        function switchTab(evt, tabId) {
            // 移除所有选项卡的激活状态
            const tabs = document.getElementsByClassName('tab');
            const contents = document.getElementsByClassName('tab-content');
            
            for (let tab of tabs) {
                tab.classList.remove('active');
            }
            
            for (let content of contents) {
                content.classList.remove('active');
            }
            
            // 添加当前选项卡的激活状态
            evt.currentTarget.classList.add('active');
            document.getElementById(tabId).classList.add('active');
        }
    </script>
</body>
</html>